package com.mf.entity.req.basic;
import java.io.Serial;

import com.mf.groups.GroupsUpdateInterface;
import com.mf.groups.GroupsAddInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;
    import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;

/**
 *  权限角色关联提交
 *
 */
@Data
public class ReqRolePermission implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
                                    private Integer roleId;
                                            private Integer permissionId;
                                    @Schema(description = "更新人id")
                        private Integer updateUserId;
                            @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
        @Null(message = "新增id必须为空", groups = {GroupsAddInterface.class})
                                private Integer id;
            }
